package CallbackVersion1;

/**
 * Created by ycq on 2018/10/18.
 * 同步回调
 */
public class ASynMain {
    public static void main(String[] args) {
        People people=new People();
        Callback callback=new Callback(){           //这里其实相当于实现了这个回调接口？
            @Override
            public void printFinished(String msg) {
                System.out.println("打印机告诉我的消息是"+msg);
            }
        };
        System.out.println("需要打印的内容是"+"打印一份简历");
        people.goToPrintASyn(callback,"打印一份简历");
        System.out.println("我在等待打印机给我反馈");

    }




}
